#ifndef PROJECTLAYOUTLOADER_H
#define PROJECTLAYOUTLOADER_H

class M_Code_Project;

class ProjectLayoutLoader {
  public:
    ProjectLayoutLoader( M_Code_Project* project );
    virtual ~ProjectLayoutLoader();
    bool Open( const wxString& filename );
    bool Save( const wxString& filename );
    bool LoadNotebookLayout() {
      return Manager::Get()->GetEditorManager()->GetNotebook()->LoadPerspective( m_NotebookLayout,
             !Manager::Get()->GetProjectManager()->IsLoadingWorkspace() );
    }
    ProjectFile* GetTopProjectFile() { return m_TopProjectFile; }
  protected:
  private:
    M_Code_Project* m_pProject;
    ProjectFile* m_TopProjectFile;
    wxString m_NotebookLayout;
};

#endif

